.class public Lrexsee/core/browser/RexseeBrowserTouchEvent;
.super Ljava/lang/Object;
.source "RexseeBrowserTouchEvent.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field public static final INTERFACE_NAME:Ljava/lang/String; = "BrowserTouchEvent"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 0
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 23
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 24
    iput-object p1, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    .line 25
    return-void
.end method


# virtual methods
.method public getDownTime()J
    .locals 2

    .prologue
    .line 43
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget-wide v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->downTime:J

    return-wide v0
.end method

.method public getDuration()J
    .locals 4

    .prologue
    .line 49
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget-wide v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->eventTime:J

    iget-object v2, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget-wide v2, v2, Lrexsee/core/browser/clazz/TouchEventInfo;->downTime:J

    sub-long/2addr v0, v2

    return-wide v0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 14
    iget-object v0, p1, Lrexsee/core/browser/Browser;->touchEvent:Lrexsee/core/browser/RexseeBrowserTouchEvent;

    return-object v0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 10
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "BrowserTouchEvent"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 18
    new-instance v0, Lrexsee/core/browser/RexseeBrowserTouchEvent;

    invoke-direct {v0, p1}, Lrexsee/core/browser/RexseeBrowserTouchEvent;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getTime()J
    .locals 2

    .prologue
    .line 46
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget-wide v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->eventTime:J

    return-wide v0
.end method

.method public getType()Ljava/lang/String;
    .locals 1

    .prologue
    .line 28
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget-object v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->type:Ljava/lang/String;

    return-object v0
.end method

.method public getVelocityX()I
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->velocityX:I

    return v0
.end method

.method public getVelocityY()I
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->velocityY:I

    return v0
.end method

.method public getX()I
    .locals 2

    .prologue
    .line 31
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->x:I

    int-to-float v0, v0

    iget-object v1, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v1, v1, Lrexsee/core/application/RexseeApplication;->screenDensity:F

    div-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    return v0
.end method

.method public getX2()I
    .locals 2

    .prologue
    .line 37
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->x2:I

    int-to-float v0, v0

    iget-object v1, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v1, v1, Lrexsee/core/application/RexseeApplication;->screenDensity:F

    div-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    return v0
.end method

.method public getY()I
    .locals 2

    .prologue
    .line 34
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->y:I

    int-to-float v0, v0

    iget-object v1, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v1, v1, Lrexsee/core/application/RexseeApplication;->screenDensity:F

    div-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    return v0
.end method

.method public getY2()I
    .locals 2

    .prologue
    .line 40
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->touchEventInfo:Lrexsee/core/browser/clazz/TouchEventInfo;

    iget v0, v0, Lrexsee/core/browser/clazz/TouchEventInfo;->y2:I

    int-to-float v0, v0

    iget-object v1, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v1, v1, Lrexsee/core/application/RexseeApplication;->screenDensity:F

    div-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    return v0
.end method

.method public isListeningToTouchMove()Z
    .locals 2

    .prologue
    .line 62
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->event_touchmove:Ljava/lang/String;

    const-string v1, "true"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public listenToTouchMove(Z)V
    .locals 2
    .param p1, "listen"    # Z

    .prologue
    .line 59
    iget-object v0, p0, Lrexsee/core/browser/RexseeBrowserTouchEvent;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->styleSheet:Lrexsee/core/style/StyleSheet;

    if-eqz p1, :cond_0

    const-string v1, "true"

    :goto_0
    iput-object v1, v0, Lrexsee/core/style/StyleSheet;->event_touchmove:Ljava/lang/String;

    .line 60
    return-void

    .line 59
    :cond_0
    const-string v1, "false"

    goto :goto_0
.end method
